import request from '@/utils/request'

export function getFieldList() {
  return request({
    url: '/api/v2/biz/farm/getFieldInfo',
    // url: '/api/v2/base/farm/field/getFieldInfo',
    method: 'GET'
  }).then(r => r.data)
}

export function getFarmList() {
  return request({ url: '/api/v2/public/getFramList' }).then(({ data }) => data)
}

export function getLianshiToken() {
  return request({
    url: '/api/v2/interface/lianshi/getToken',
    method: 'GET'
  }).then(r => r.data)
}
